import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class AssemblyListingTest {
	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
		AssemblyListing.startIntermediateFile();
	}
	
	@Test
	public void testObjectCode() {
		String expected = "15AB31";
		String binaryInput = "101011010101100110001";
		Integer lineNumber = 11;
		AssemblyListing.addObjectCode(lineNumber, binaryInput);
		String actual = AssemblyListing.returnObjectCode(11).toUpperCase();
		
		assertEquals("Should be the Correct Hex Conversion", expected, actual);
	}
}
